#ifndef __BKP_H__
#define __BKP_H__

#include "stm32f4xx.h"
#include "stm32f4xx_rcc.h"
#include "stm32f4xx_pwr.h"
#include "stm32f4xx_rtc.h"
#include "wizchip_conf.h"


void write_backup_register_std(uint8_t register_num, uint32_t value);
uint32_t read_backup_register_std(uint8_t register_num);

uint8_t get_bkp_stat(uint8_t* mac);
void get_bkp_ip(wiz_NetInfo* index);
void get_bkp_mask(wiz_NetInfo* index);
void get_bkp_gw(wiz_NetInfo* index);
void get_bkp_dns(wiz_NetInfo* index);
void get_bkp_mac(wiz_NetInfo* index);

void set_bkp_mac(wiz_NetInfo index);
void set_bkp_ip(wiz_NetInfo index);
void set_bkp_mask(wiz_NetInfo index);
void set_bkp_gw(wiz_NetInfo index);
void set_bkp_dns(wiz_NetInfo index);

#endif
